package com.jifen.agent.dao;

import com.jifen.agent.entity.AgentBill;
import com.jifen.agent.entity.SmarketJifenDetail;
import com.jifen.common.BaseDao;
import com.jifen.mch.entity.MchJifenDetail;
import com.jifen.mch.vo.MchParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SmarketJifenDetailDao extends BaseDao<SmarketJifenDetail> {

    List<SmarketJifenDetail> selectPage(MchParam param);

    Double sumBillJifenByMonth(MchParam param);

    Double sumBillJifenByDay(MchParam param);

    List<AgentBill> sumBillJifenByDays(MchParam param);

    Double sumJifenByTotal(@Param("type")int type, @Param("guid")int guid);
}
